<%@taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<%--
    This file is an entry point for JavaServer Faces application.
--%>


<html>
      <head>
            <title>RichFaces Prueba</title>
      </head>
      <body>
            <f:view>
                  <a4j:form>
                      <table border="2" align="center" width="300" height="200" >

                              <tbody>
                                <tr>
                                    <td><h:outputText value="Nombre: " /></td>
                                    <td><h:inputText value="#{user.name}" >
                                        <f:validateLength minimum="1" maximum="30" />
                                        </h:inputText>
                                    </td>
                                </tr>

                                <tr><td></td>
                                    <td><a4j:commandButton value="Ingresar" /></td>
                                </tr>

                              </tbody>

                      </table>
                  </a4j:form>

            </f:view>
      </body>


</html>